<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>jquery 插件</title>
    <style type="text/css">
    *{
        margin: 0;
        padding: 0;
    }
    .tab{
        width: 400px;
        height: 50px;
    }
    .tab_nav{
        width: 100%;
        height: 100%;
    }
    .tab_nav li{
        float: left;
        width: 33%;
        height: 100%;
        box-sizing: border-box;
        border: 1px solid #ccc;
    }
    .tab_content div{
        display: none;
    }
    .current{
        background: #000;
        color: #fff;
    }
    </style>
</head>

<body>
    <div class="tab">

        <ul class="tab_nav">
            <li class="current">html</li>
            <li>css</li>
            <li>js</li>
        </ul>

        <div class="tab_content">
            <div style="display:block;">html</div>
            <div>css</div>
            <div>js</div>
        </div>
    </div>
    <script src="js/jquery-1.11.3.min.js"></script>
    <script src="js/jquery.plugin.js"></script>
    <script>
        $(function(){
            $('.tab').tab();
        })
    </script>
</body>

</html>